package mapper;

import org.apache.ibatis.annotations.Param;
import entity.SysRole;

import java.util.List;

public interface SysRoleMapper {
    /**
     * 获取角色列表
     * @return
     */
    public List<SysRole> getAll();

    public SysRole getById(@Param("id") Long id);
    public int insert(SysRole sysRole);
    public int update(SysRole sysRole);
    public int delete(Integer id);
    public SysRole getCode(@Param("code") String code);

}
